package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 火车车厢对象 train_carriage
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class TrainCarriage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "ID")
    private Long id;

    /** 车次编号 */
    @Excel(name = "车次编号")
    private String trainCode;

    /** 厢号 */
    @Excel(name = "厢号")
    private Long index;

    /** 座位类型|枚举[SeatTypeEnum] */
    @Excel(name = "座位类型|枚举[SeatTypeEnum]")
    private String seatType;

    /** 座位数 */
    @Excel(name = "座位数")
    private Long seatCount;

    /** 排数 */
    @Excel(name = "排数")
    private Long rowCount;

    /** 列数 */
    @Excel(name = "列数")
    private Long colCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTrainCode(String trainCode) 
    {
        this.trainCode = trainCode;
    }

    public String getTrainCode() 
    {
        return trainCode;
    }
    public void setIndex(Long index) 
    {
        this.index = index;
    }

    public Long getIndex() 
    {
        return index;
    }
    public void setSeatType(String seatType) 
    {
        this.seatType = seatType;
    }

    public String getSeatType() 
    {
        return seatType;
    }
    public void setSeatCount(Long seatCount) 
    {
        this.seatCount = seatCount;
    }

    public Long getSeatCount() 
    {
        return seatCount;
    }
    public void setRowCount(Long rowCount) 
    {
        this.rowCount = rowCount;
    }

    public Long getRowCount() 
    {
        return rowCount;
    }
    public void setColCount(Long colCount) 
    {
        this.colCount = colCount;
    }

    public Long getColCount() 
    {
        return colCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("trainCode", getTrainCode())
            .append("index", getIndex())
            .append("seatType", getSeatType())
            .append("seatCount", getSeatCount())
            .append("rowCount", getRowCount())
            .append("colCount", getColCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
